package ai.people.platform.information.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 数据源配置集合
 *
 * @author LiGuanNan
 * @date 2022/6/13 17:24
 */
@Configuration("informationServerDataSources")
@ConfigurationProperties(prefix = "information.thirdparty")
public class InformationServerDataSources {

    private static List<DataSourceProperties> datasource;

    public List<DataSourceProperties> getDatasource() {
        return datasource;
    }

    public void setDatasource(List<DataSourceProperties> datasource) {
        InformationServerDataSources.datasource = datasource;
    }
}
